<?php
class WebsitesModel extends Model{
	//获取所有列表
	public function getList($map = array(), $limit = 10){
		$list = $this->where($map)->order('id DESC')->limit($limit)->select();
		foreach($list as $key=>$val){
			$list[$key]['url'] = setViewUrl('site', $val);	
		}
		
		return $list;
	}	
}